package org.example.Helloworl.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.example.Helloworl.model.Result;
import org.example.Helloworl.service.WeBASEServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "webasefront", tags = "webase-front接口")
@RestController
@RequestMapping("/webasefront")
public class WeBASEFrontController {
    @Autowired
    WeBASEServiceImpl weBASEService;

    @ApiOperation(value = "Set方法", notes = "Set方法")
    @RequestMapping(value = "set", method = RequestMethod.GET)
    public Result<String> set(String data) {
        return weBASEService.setImpl(data);
    }

    @ApiOperation(value = "Get方法", notes = "Get方法")
    @RequestMapping(value = "get", method = RequestMethod.GET)
    public Result<String> get() {
        return weBASEService.getImpl();
    }
}
